cmake_minimum_required(VERSION 2.8)
project(Aplus)

include_directories(${CMAKE_SOURCE_DIR}/Aplus/asrc)
file(GLOB_RECURSE SRC "${CMAKE_SOURCE_DIR}/Aplus/asrc/*.c")

if(WIN32)
  include_directories(${CMAKE_SOURCE_DIR}/Aplus/wininc)
  file(GLOB_RECURSE WSRC "${CMAKE_SOURCE_DIR}/Aplus/wininc/*.cpp")
  set(SRC ${SRC} ${WSRC})
endif(WIN32)

if(MSVC)
  add_definitions(-D__VISUAL_STUDIO -D_CRT_SECURE_NO_WARNINGS)
endif(MSVC)

add_library(Aplus STATIC ${SRC})
